package com.erp.erp_entitys.business.entity;

import com.erp.annotation.PropertyMsg;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 出口业务-外销费用表(ExportContractCost)实体类
 *
 * @author lst
 * @since 2021-01-17 10:29:56
 */
public class ExportContractCostEntity implements Serializable {
    private static final long serialVersionUID = -53638158582560230L;
    /**
    * 主键id
    */
    private Integer id;
    /**
    * 外销主表id
    */
    private Integer parentId;
    /**
    * 外销产品明细id
    */
    private Integer detailId;
    /**
    * 费用类型名称
    */
    @PropertyMsg("费用类型")
    private String typeName;
    /**
    * 费用类型编码
    */
    private String typeCode;
    /**
    * 金额
    */
    @PropertyMsg("金额")
    private BigDecimal amount;
    /**
    * 备注
    */
    @PropertyMsg("备注")
    private String memo;
    /**
    * 创建时间
    */
    private Date createDate;
    /**
    * 修改时间
    */
    private Date modifyTime;
    /**
    * 是否有效(0:无效 1:有效)
    */
    private Integer valid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }


    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ExportContractCostEntity").append('[')
                .append("id=")
                .append(id)
                .append(",parentId=")
                .append(parentId)
                .append(",detailId=")
                .append(detailId)
                .append(",typeName=")
                .append(typeName)
                .append(",typeCode=")
                .append(typeCode)
                .append(",amount=")
                .append(amount)
                .append(",memo=")
                .append(memo)
                .append(",createDate=")
                .append(createDate)
                .append(",modifyTime=")
                .append(modifyTime)
                .append(",valid=")
                .append(valid)
                .append(']');
        return sb.toString();
    }
}